USE [SRD]
GO

/****** Object:  Table [dbo].[DESPESA_HOSPEDAGEM]    Script Date: 05/14/2011 11:02:51 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[DESPESA_HOSPEDAGEM](
	[DESPESA_ID] [int] NOT NULL,
	[CHECKIN] [datetime] NOT NULL,
	[CHECKOUT] [datetime] NOT NULL,
	[VALOR_DIARIA] [decimal](5, 2) NOT NULL,
	[NM_PRESTADOR] [nvarchar](50) NOT NULL,
 CONSTRAINT [PK_DESPESA_HOSPEDAGEM] PRIMARY KEY CLUSTERED 
(
	[DESPESA_ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[DESPESA_HOSPEDAGEM]  WITH CHECK ADD  CONSTRAINT [FK_DESPESA_HOSPEDAGEM_DESPESA] FOREIGN KEY([DESPESA_ID])
REFERENCES [dbo].[DESPESA] ([DESPESA_ID])
GO

ALTER TABLE [dbo].[DESPESA_HOSPEDAGEM] CHECK CONSTRAINT [FK_DESPESA_HOSPEDAGEM_DESPESA]
GO


